package com.lpl.mapper;

import com.lpl.polo.selectDao;
import com.lpl.polo.user;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface chadao {
    @Select("select * from dao where id=#{openid}")
    selectDao selectUserdao(String openid);
    @Insert("INSERT INTO dao (id,name) VALUES (#{openid},#{josn})")
    int daologin(String openid,String josn);

    @Update("UPDATE dao SET name=#{josn} where id=#{openid}")
    int UpdateDao(String openid,String josn);
//    UPDATE 表名 SET 列1 = 值1, 列2 = 值2, ... WHERE 条件;
}
